package chixing.day03;

public class MenthodDemo {
    public static void main(String[] args) {
        int a=11;
        int b=22;
        int result=add(a,b);
        System.out.println(result);
        System.out.println(a+b);
    }

    /**
     *
     * @param x
     * @param y
     * @return
     */
    public static int add(int x,int y){//形式参数x，y;int x=a(将a的值 复制一份给x)
        x=0;
        y=2;
        int sum=x+y;
        return sum;
    }

}
